{{foreach item in market_categories_root}}
	<div class="item{{if item.active}} itemA{{/if}}{{if item.children}} dropdown-root{{/if}}">
		<a href="{{urlprefix}}{{configMarket.action}}category/{{item.code}}/">{{item.name}}</a>
		{{if item.children}}
			<div class="dropdown-child">
			{{foreach i in item.children}}
				<div class="item"><a href="{{urlprefix}}{{configMarket.action}}category/{{i.code}}/">{{i.name}}</a></div>
			{{/foreach}}
			</div>
		{{/if}}
	</div>
{{/foreach}}
